package com.yikes.srb.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * <p>
 * minio配置
 * </p>
 *
 * @Author: guanrong.yin
 * @Date: 2024/12/10 23:38
 */
@Component
public class FileConfig {

    @Bean
    public MinioClient minioClient() {

        return MinioClient.builder()
                .endpoint(FileProperties.END_POINT)
                .credentials(FileProperties.ACCESS_KEY, FileProperties.SECRET_KEY)
                .build();
    }

}
